Repository navigation
feat(auto-sync): migrate configuration and workflow to Loopwright Taskpack 2.0 - #425
Merged
Merged
Conversation
…kpack 2.0
Migrate .auto-sync/taskpack.yaml, .auto-sync/instructions.md, .auto-sync/checks/*, and .github/workflows/auto-sync.yml to Loopwright Taskpack 2.0:
- Adopt explicit Taskpack 2.0 scope globs (pack/{cuda,rocm,cann}/** and protected pack/cann/patches/hixl/**) and reject bare directory scope entries in validate_candidate.py.
- Declare spec.execution (mode: strict, digests.pinDigests: true) with .auto-sync/digests.lock.json, set allowReadOnlyGitHubToken: false and explicit toolchainPaths on runner-static-checks, and support LOOPWRIGHT_BASE_DIR under directory-mounted command.v1 verification.
- Rename workflow to Auto Sync, switch gpustack/loopwright@main to mode: auto with explicit strict dual-key flags, verify the default-branch checkout ref, and remove obsolete dry-run upstream-records and custom-base-url glue.
Signed-off-by: thxCode <thxcode0824@gmail.com>
There was a problem hiding this comment.
Code Review
This pull request updates the release automation to support Taskpack 2.0, introducing a deterministic SHA-256 lockfile (digests.lock.json) to pin instructions and checks, strict execution mode, and explicit glob-based scope rules. It enhances validate_candidate.py to support glob scope classification and offline validation against a baseline snapshot directory when .git is absent. Feedback on the changes suggests using filecmp.cmp to avoid loading entire files into memory during validation, and pre-emptively cleaning up __pycache__ in tests to prevent fragile test failures.
…ght Taskpack 2.0 Signed-off-by: thxCode <thxcode0824@gmail.com>
Contributor
Author
Review Feedback SummaryAll feedback items from the review round have been triaged and addressed:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrate
.auto-sync/*and.github/workflows/auto-sync.ymlto Loopwright Taskpack 2.0:spec.scope.writable(pack/cuda/**,pack/rocm/**,pack/cann/**, plus exact single-file entries including.auto-sync/proposal.json) andspec.scope.protected(pack/cann/patches/hixl/**), and enforce explicit/**directory glob rules invalidate_candidate.py.spec.execution(mode: strict,digests.pinDigests: true) with.auto-sync/digests.lock.json, setallowReadOnlyGitHubToken: falseand explicittoolchainPathsonrunner-static-checks, require the directory-mountedvalidate_candidate.pyinvalidate_candidate.sh(-B), and verify scope andpublishedsupport rows against$LOOPWRIGHT_BASE_DIRwhen.gitis unmounted.Auto Sync): rename the workflow toAuto Sync, switchgpustack/loopwright@maintomode: auto(check-onlyno_changeverification with zero model calls when upstreams match.auto-sync/proposal.json;forceorpack-run-urldispatchescandidate), setallow-privileged-execution: 'false'andallow-workflow-writes: 'false', verify the default-branch ref before execution, and remove obsoleteupstream-records/allow-custom-base-urlglue.Verification
loopwright digest sync --taskpack .auto-sync/taskpack.yaml --repo . --check --jsonLOOPWRIGHT_CANDIDATE_DIR="$PWD" uv run bash .auto-sync/checks/validate_candidate.shuv run python -B .auto-sync/checks/lint_workflows.py .github/workflows/auto-sync.yml .github/workflows/pack.yml .github/workflows/ci.ymluv run pytest tests/gpustack_runner tests/packuv run mkdocs build --strictuv run pre-commit run --all-files